package com.yupi.cli.command;

import cn.hutool.core.io.FileUtil;
import picocli.CommandLine.Command;

import java.io.File;
import java.util.List;

@Command(name = "list", description = "查看文件列表", mixinStandardHelpOptions = true)
public class ListCommand implements Runnable {
public void run() {
// 输入路径
String inputPath = ".source/acm-template-pro";
List<File> files = FileUtil.loopFiles(inputPath);
    for (File file : files) {
    // 打印文件信息
    System.out.println(file);
    }
    }
    }